import { dataType } from 'element-plus/es/components/table-v2/src/common.mjs'
import { get, post } from '../utils/axios'


//获取角色列表
// export const roleList = (param:any)=>{
//     console.log('--------------',param)
//     return get('/back/sys/role/roleList',param)
// }

export const roleList = (param:any)=>get('/back/sys/role/roleList',param)

//角色删除
export const delRole = (id:number)=>post('/back/sys/role/roleDel/'+id)
//角色修改
export const editRole = (data:{id:number,name:string,code:string,remark:string,status:string})=>post('/back/sys/role/roleEdit',data)